package com.faiz.generic;

public class Pair<T extends Number>{
    T first;
    T second;

    public Pair() {

    }

    public Pair(T first, T second) {
        this.first = first;
        this.second = second;
    }

    public T getFirst() {
        return first;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public T getSecond() {
        return second;
    }

    public void setSecond(T second) {
        this.second = second;
    }

    public static void main(String[] args) {
        Pair<Integer> integerPair = new Pair<>(1,2);
        System.out.println(integerPair.getFirst());
    }
}
